package com.cloud.punish.common.result;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class SelectItem {
	private String label;
	private Object value;
	private String styleClass;
	private String icon;
	private boolean disabled;
	private String title;
	private List<SelectItem> children;
	@JsonProperty("isLeaf")
	private boolean isLeaf;
	private int level;

	public SelectItem(){}
	
	public SelectItem(String label, Object value) {
		super();
		this.label = label;
		this.value = value;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public String getStyleClass() {
		return styleClass;
	}

	public void setStyleClass(String styleClass) {
		this.styleClass = styleClass;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public List<SelectItem> getChildren() {
		return children;
	}

	public void setChildren(List<SelectItem> children) {
		this.children = children;
	}

	public boolean isLeaf() {
		return isLeaf;
	}

	public void setLeaf(boolean leaf) {
		isLeaf = leaf;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}
}
